<script setup>
import Copyright from '/src/components/copyright.vue'
import Header from '/src/components/Header.vue'
import Aside from '/src/components/Aside.vue'
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="250px">
        <Aside></Aside>
      </el-aside>
      <el-container>
        <el-header>
          <Header></Header>
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>

        <!-- 底部版权 -->
        <el-footer height="30px">
          <Copyright></Copyright>
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="less" scoped>
.el-aside {
  height: 100vh;
}

.el-header, .el-main, .el-footer {
  background-color: #f3f5f9;
}

.el-main {
  padding: 0 20px;
}
</style>
